package org.lanettiesso.loader;

public class WebappClassLoader extends IdentityClassLoader {

    private final String name;

    public WebappClassLoader(String name, String classpath, ClassLoader parent) {
        super(parent);
        this.name = name;
        addClasspath(classpath + "/webapp/" + name);
    }

    @Override
    public String toString() {
        return "WebappClassLoader{" +
                "name='" + name + '\'' +
                '}';
    }
}
